{include file=member.header.html}
{include file="title.html"}
{include file=member.submenu.html}
<script>
    $(function () {
        $('#epay-withdraw').submit(function () {
            if ($(this).find('input[name="tx_money"]').val() == '' || $(this).find('input[name="tx_money"]').val() <= 0) {
                alert('{$lang.cuowu_tixianjinebunengweikong}');
                return false;
            }
        });
    })
</script>

<style>
    .epay_withdraw{margin:10px;padding:10px;background:#fff;}
    .epay_withdraw .title{text-align: center;margin-bottom: 10px;font-size: 14px;}
    .epay_withdraw .title strong{color:red;float:none;}
    .epay_withdraw dl{display: block;width: 100%;line-height: 20px;}
    .epay_withdraw dl dt{display: block;font-size: 14px;color: #333;font-weight: bold;margin-bottom: 10px;}
    .epay_withdraw dl dd{margin-bottom:20px;float:left;width: 100%}
    .epay_withdraw dl dd input{float: left;margin-top:3px;margin-right: 5px;}
    .epay_withdraw dl dd .float-left{float: left;margin-right: 10px;}
    .epay_withdraw dl dd .float-right{float:right;}
</style>
<form method="post" id="epay-withdraw">
<input style="display:none" type="password"  id="post_zf_pass" />
    <!--{if $member.money gt 0}-->
    <!--{if !$bank_list}-->
    <div class="notice-word">{$lagn.setting_withdraw_bank_card}<a  href="{url app=account_log&act=bank_add}">{$lang.setting_rightnow}</a></div>
    <!--{else}-->
    <div class="epay_withdraw">
        <div class="notice-word">{$lang.confirm_your_card_is_correct_notice}</div>
        <div class="title">{$lang.extract_balance_to_card}</div>
        <div class="title">{$lang.remain}：<strong>{$member.money}</strong> {$lang.yuan}</div>
        <div class="title"><a class="add-bank"  href="{url app=account_log&act=bank_add}">{$lang.bank_add}</a></div>
        <div class="title"><a  href="{url app=account_log&act=logall&type=70}">{$lang.tixianjilu}</a></div>
        <dl class="clearfix">
            <dt>{$lang.choose_card}：</dt>
            <!--{foreach from=$bank_list item=bank name=fe_bank}-->
            <label for="bank_id_{$bank.bank_id}">
                <dd>
                    <input name="bank_id" id="bank_id_{$bank.bank_id}" type="radio" value="{$bank.bank_id}" {if $smarty.foreach.fe_bank.first} checked="checked" {/if}/>
                           <div class="float-left">{$bank.bank_name}-{$bank.bank_type}</div>
                    <div class="float-left">{$bank.bank_num}</div>
                    <div class="float-right">
                        <a  href="{url app=account_log&act=bank_edit&bank_id=$bank.bank_id}">{$lang.edit}</a>
                    </div>
                </dd>
            </label>
            <!--{/foreach}-->
        </dl>
    </div>
    <ul class="form_content">
        <li>
            <h3>{$lang.cash_withdrawal_amount}</h3>
            <p><input type="text" name="tx_money"  value="" /></p>
        </li>
        <li>
            <h3>{$lang.payment_zhifu}</h3>
            <p><input type="password" name="post_zf_pass"  value="" /></p>
        </li>
        <li>
            <input class="red_btn" type="submit" value="{$lang.submit}" />
        </li>
    </ul>
    <!--{/if}-->
    <!--{else}-->
    <div class="notice-word">{$lang.account_balance}<span class="f60">0</span>{$lang.disable_apply_withdraw}</div>
    <!--{/if}-->
</form>


{include file=footer.html}